* {
    margin: 0;
    padding: 0%;
    box-sizing: border-box;
}

:root {
    --primary: #1a5f7a;
    --secondary: #57cc99;
    --accent: #ff9a3c;
    --light: #f8f9fa;
    --dark: #2d3436;
    --gray: #6c757d;
    --border: #eaecf0;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}
/* =========================================================
   BEAUTIFUL NURSERY SUBJECTS SECTION
========================================================= */

.nursery-courses-section {
    position: relative;
    padding: 110px 0;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 5% 10%,
            rgba(255, 107, 107, 0.18),
            transparent 22%
        ),
        radial-gradient(
            circle at 95% 10%,
            rgba(87, 204, 153, 0.18),
            transparent 22%
        ),
        radial-gradient(
            circle at 10% 95%,
            rgba(255, 154, 60, 0.16),
            transparent 24%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(132, 94, 194, 0.15),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #f4fbff 0%,
            #ffffff 45%,
            #f8fff9 100%
        );
}


/* =========================================================
   DECORATIVE BACKGROUND
========================================================= */

.nursery-courses-section::before {
    content: "";
    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: rgba(87, 204, 153, 0.08);

    top: -130px;
    right: -80px;
}


.nursery-courses-section::after {
    content: "";
    position: absolute;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background: rgba(255, 154, 60, 0.08);

    bottom: -120px;
    left: -90px;
}


.nursery-courses-section .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.nursery-courses-section .section-title-bar {
    text-align: center;
    margin-bottom: 70px;
}


.nursery-courses-section .section-subtitle {
    display: inline-block;

    padding: 8px 16px;

    border-radius: 50px;

    background: rgba(255, 154, 60, 0.12);

    color: #ff7a00;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 12px;
}


.nursery-courses-section .section-title {
    font-size: 42px;

    font-weight: 900;

    color: #1a5f7a;

    margin-bottom: 12px;
}


.nursery-courses-section .section-description {
    max-width: 700px;

    margin: auto;

    color: #6c757d;

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   COURSE GRID
========================================================= */

.nursery-courses-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}


/* =========================================================
   COURSE CARD
========================================================= */

.nursery-course-card {
    position: relative;

    padding: 32px 24px 30px;

    background: rgba(255,255,255,0.95);

    border-radius: 24px;

    text-align: center;

    border: 1px solid rgba(255,255,255,0.8);

    box-shadow:
        0 10px 30px rgba(26,95,122,0.07);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;

    overflow: hidden;
}


/* Top colored line */

.nursery-course-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        #1a5f7a,
        #57cc99,
        #ff9a3c,
        #845ec2
    );
}


/* Hover */

.nursery-course-card:hover {
    transform: translateY(-12px);

    box-shadow:
        0 25px 45px rgba(26,95,122,0.14);

    border-color: rgba(87,204,153,0.30);
}


/* =========================================================
   ICON
========================================================= */

.nursery-course-icon {
    width: 78px;
    height: 78px;

    margin: 5px auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 22px;

    color: #ffffff;

    font-size: 28px;

    box-shadow:
        0 10px 22px rgba(0,0,0,0.12);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}


.nursery-course-card:hover
.nursery-course-icon {
    transform:
        translateY(-5px)
        rotate(8deg)
        scale(1.08);

    box-shadow:
        0 15px 28px rgba(0,0,0,0.16);
}


/* Icon colors */

.nursery-course-icon.english {
    background: linear-gradient(
        135deg,
        #ff6b6b,
        #ff9a3c
    );
}

.nursery-course-icon.mathematics {
    background: linear-gradient(
        135deg,
        #168aad,
        #57cc99
    );
}

.nursery-course-icon.phonics {
    background: linear-gradient(
        135deg,
        #845ec2,
        #5f27cd
    );
}

.nursery-course-icon.science {
    background: linear-gradient(
        135deg,
        #00b894,
        #57cc99
    );
}

.nursery-course-icon.reasoning {
    background: linear-gradient(
        135deg,
        #ff9a3c,
        #ff6b6b
    );
}

.nursery-course-icon.verbal {
    background: linear-gradient(
        135deg,
        #5f27cd,
        #845ec2
    );
}

.nursery-course-icon.arts {
    background: linear-gradient(
        135deg,
        #ff6b6b,
        #ff9a3c
    );
}

.nursery-course-icon.social {
    background: linear-gradient(
        135deg,
        #168aad,
        #57cc99
    );
}

.nursery-course-icon.civic {
    background: linear-gradient(
        135deg,
        #00b894,
        #168aad
    );
}

.nursery-course-icon.computer {
    background: linear-gradient(
        135deg,
        #1a5f7a,
        #168aad
    );
}

.nursery-course-icon.physical {
    background: linear-gradient(
        135deg,
        #00b894,
        #1abc9c
    );
}

.nursery-course-icon.health {
    background: linear-gradient(
        135deg,
        #ff6b6b,
        #ff8e8e
    );
}

.nursery-course-icon.religious {
    background: linear-gradient(
        135deg,
        #845ec2,
        #a66cff
    );
}

.nursery-course-icon.songs {
    background: linear-gradient(
        135deg,
        #ff9a3c,
        #ffd166
    );
}

.nursery-course-icon.handwriting {
    background: linear-gradient(
        135deg,
        #1a5f7a,
        #57cc99
    );
}

.nursery-course-icon.writing {
    background: linear-gradient(
        135deg,
        #168aad,
        #845ec2
    );
}

.nursery-course-icon.numbers {
    background: linear-gradient(
        135deg,
        #57cc99,
        #00b894
    );
}

.nursery-course-icon.practical {
    background: linear-gradient(
        135deg,
        #ff9a3c,
        #ff6b6b
    );
}

.nursery-course-icon.environment {
    background: linear-gradient(
        135deg,
        #00b894,
        #57cc99
    );
}

.nursery-course-icon.home {
    background: linear-gradient(
        135deg,
        #845ec2,
        #5f27cd
    );
}


/* =========================================================
   COURSE TEXT
========================================================= */

.nursery-course-card h3 {
    color: #263238;

    font-size: 19px;

    font-weight: 800;

    line-height: 1.3;

    margin-bottom: 12px;
}


.nursery-course-card p {
    color: #6c757d;

    font-size: 13px;

    line-height: 1.8;

    margin: 0;
}


/* =========================================================
   CARD HOVER GLOW
========================================================= */

.nursery-course-card:hover::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    border-radius: 50%;

    background: rgba(87,204,153,0.08);

    right: -40px;
    bottom: -40px;

    pointer-events: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .nursery-courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 800px) {

    .nursery-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 550px) {

    .nursery-courses-section {
        padding: 75px 0;
    }

    .nursery-courses-section .section-title {
        font-size: 31px;
    }

    .nursery-courses-grid {
        grid-template-columns: 1fr;
    }

    .nursery-course-card {
        padding: 30px 25px;
    }

}